
local tongye = fk.CreateSkill{
  name = "lvshi__tongye",
  tags = { Skill.Lord }
}

Fk:loadTranslationTable{
  ["lvshi__tongye"] = "统业",
  [":lvshi__tongye"] = "主公技，吴势力角色的回合结束时，可令你发动一次“制衡”。",
  ["#lvshi__tongye"] = "你可以令%src发动“制衡”",

  ["$lvshi__tongye1"] = "惠用张仪，昭得范雎，朕拥卿足矣！",
  ["$lvshi__tongye2"] = "南靖交越，北复荆襄，使吴成帝业。",
}

tongye:addEffect(fk.TurnEnd, {
  can_trigger = function(self, event, target, player, data)
    return target.kingdom == "wu" and player:hasSkill(tongye.name) and not player:isNude()
  end,
  on_cost = function(self, event, target, player, data)
    return player.room:askToSkillInvoke(target, {skill_name = tongye.name, prompt = "#lvshi__tongye:"..player.id})
  end,
  on_use = function(self, event, target, player, data)
    player.room:askToUseActiveSkill(player, {skill_name = "lvshi__zhiheng", prompt = "#lvshi__zhiheng"})
    player:broadcastSkillInvoke("lvshi__zhiheng")
  end,
})

return tongye